<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var good = ['Nike背包','Adidas运动衫','李宁运动鞋','Kappa外套','361度腰包']
    document.write('<h3>打折商品：</h3>');

    good.shift();
    good.push('Adidas运动裤');
    good.splice(1,1,'特步运动鞋');
    document.write(good.join());

    // for (let index = 0; index < good.length; index++) {
    //     document.write(good[index]+'<br />');
        
    // }
</script>
</html>